﻿<form id="pagerForm" method="post" action="admin.php?m=system&c=catalog&ids=<?php echo $ids;?>">
	<div class="pageContent">	
		<div class="panelBar">
			<ul class="toolBar">	
				<li><a class="add" lang="system" rel="addcatalog" target="dialog" width="600" height="506"><span>增加频道节点</span></a></li>   
				<li><a class="edit" lang="system" rel="editcatalog" target="dialog" ids="{slt_user}" width="600" height="506"><span>修改频道节点</span></a></li>
				<li><a class="delete" target="selectedTodo" lang="purge" rel="catalog"  ids="ids" pos="2" postType="string" alertSelectMsg="请选择要删除的项目" warn="选择的主栏目存在子节点或子节点中存在文章"   title="删除栏目，该栏目下所有数据都会删除，确定要删除当前节点吗?"><span>批量所选删除项目</span></a></li>
				<li><a class="view" target="selectedTodo" lang="sort" rel="catalog" ids="ids" postType="string"  title="批量更新所选项目排序?"><span>更新频道排序</span></a></li>
			</ul>
		</div>
		<table class="list" width="100%" layoutH="53">
			<thead>
				<tr>
					<th width="40"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
					<th width="40">序号</th>
					<th width="40">ID</th>
					<th width="160">频道节点标识</th>
					<th width="160">所属父节点</th>
					<th>频道节点名称</th>					
					<th width="80">文档数量</th>
					<th width="120">排序号</th>
					<th width="160">操作</th>
				</tr>
			</thead>
			<tbody>
			<?php 
			$list = $tpl->GetInfoList('catalog',0,1,'pid','asc');
			foreach($list as $k => $v)
			{
				echo "
				<tr target=\"slt_user\" rel=\"".$v['id']."\" class=\"trbgs\">
					<td><input name=\"ids\"  type=\"checkbox\" value=\"".$v['id']."\" /></td>
					<td>". ($k+1) ."</td>
					<td>".$v['id']."</td>
					<td>".$tpl->GetModule($v['type'])."</td>
					<td>".$tpl->GetField($v['cid'],'catalog','title')."</td>
					<td class=\"pad\">".$v['title']."</td>					
					<td><font>".$tpl->GetTotal($v['type'],'cid='.$v['id'])."</font></td>
					<td><input type=\"text\" class=\"ipt\" id=\"pid_".$v['id']."\" value=\"".$v['pid']."\" /></td>
					<td class=\"pad\">
						<input type=\"hidden\" id=\"cid_".$v['id']."\" value=\"0\" />                                        
						<a class=\"btnEdit\" target=\"dialog\" lang=\"system\" rel=\"editcatalog\" ids=\"".$v['id']."\" width=\"600\" height=\"506\" title=\"修改节点\" >编辑</a>
						<a class=\"btnDel\" target=\"ajaxTodo\" lang=\"purge\" rel=\"catalog\" ids=\"".$v['id']."\"  pos=\"1\" warn=\"选择的主栏目存在子节点或子节点中存在文章\" title=\"删除栏目，该栏目下所有数据都会删除，确定要删除当前节点吗?\">删除</a>
					</td>
				</tr>";
			}
			?>
			</tbody>
		</table>
	</div>
</form>